Skip to main content

createEcsFree

Description

Create ecs free.

Request Method

POST

Request Path

/customer/ecs/free/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
periodBODYintegerNoNo sample value for this parameter.period
costBODYnumberNoNo sample value for this parameter.cost
imageIdBODYstringYesNo sample value for this parameter.image id
quantityBODYintegerYesNo sample value for this parameter.quantity
bandwidthBODYintegerNoNo sample value for this parameter.bandwidth
publicIpAddressBODYbooleanNoNo sample value for this parameter.public ip address
systemDiskBODYobjectYesNo sample value for this parameter.No description for this parameter.
billingMethodBODYstringYesNo sample value for this parameter.billing method
instanceTypeBODYstringYesNo sample value for this parameter.instance type
instanceFamilyBODYstringYesNo sample value for this parameter.instance family
deploymentSetIdBODYstringYesNo sample value for this parameter.deployment set id
securityGroupIdBODYstringYesNo sample value for this parameter.security group id
regionIdBODYstringYesNo sample value for this parameter.region id
vSwitchIdBODYstringYesNo sample value for this parameter.vSwitch id
serverGuardBODYbooleanYesNo sample value for this parameter.server guard
vpcIdBODYstringYesNo sample value for this parameter.vpc id
pricingCycleBODYstringNoNo sample value for this parameter.pricing cycle
dataDiskBODYarrayNoNo sample value for this parameter.infomation of data disk list
imageTypeBODYstringYesNo sample value for this parameter.image type

Return data

NameTypeSample valueDescription
resultobject`{"ecsCommonResponseVos":[{"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7","orderId":2.0220727154128E+18}]}`result
resultCodestring0result code
resultMsgstringsuccessresult message

Example

Successful Response example

{
"result":
{
"ecsCommonResponseVos":
[
{
"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7",
"orderId":2.0220727154128E+18
}

]

},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}